package cn.gdcp.demo11;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class StuOpenHelper extends SQLiteOpenHelper {
    public StuOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase sqlitedb) {
        String sql1 = "create table student(stuno varchar(10), name varchar(10), age int)";
        sqlitedb.execSQL(sql1);

        String sql2 = "create table score(stuno varchar(10), english int, android int)";
        sqlitedb.execSQL(sql2);

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
